<% if(p!=null) { %>
<img src="<%=contextPath%>/sitewide/img/274025_601_B.jpg" width="300"/>
<% } %>
</td><td valign="top" width="170" style="border-left:1px solid silver; padding-left:10px">
<% if(p!=null) { %>
<% if("palc".equals(action)) { %>
<form action="<%=contextPath%>/palcAdd.do" method="post">
<% } else { %>
<form action="<%=contextPath%>/basketAdd.do" method="post">
<% } %>
<input type="submit" value="Agregar &gt;">
<br>
<br>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<th colspan="2" align="left"><%=p.getName()%> (<%=p.getBarcode()%>)</th>
<tr>
<td width="50" align="right">Precio:</td>
<td><%if(p.getSalePrice()!=null){%>$<%=p.getSalePrice()%>! <span style="text-decoration:line-through">$<%=p.getUnitPrice()%></span><%} else { %>$<%=p.getUnitPrice()%><% } %></td></tr>
<tr>
<td width="50" align="right">Stock:</td>
<td><%=p.getStock()%></td></tr>
<tr>
<td width="50" align="right">Tipo:</td>
<td><%if(p.getType()!=null){%><%=p.getType()%><%} else {%>Hogar<%} %></td></tr>
</table>
</form>
<% } %>
